const state={
	userCode:"",    //wx.login返回的code值
	userInfo:"",    //用户信息
};
const mutations={
	setUserInfo(state,value){
		state.userInfo=value;
	},
	setUserCode(state,value){
	  state.userCode=value;
	},
};
const actions={
	setUserInfo(content,value){
	  content.commit('setUserInfo',value)
	},
	setUserCode(content,value){
	  content.commit('setUserCode',value)
	},
}
 
// 不要忘记把state, mutations等暴露出去。
export default {
  state,
  mutations,
  actions
}